﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Windows.Forms;
using QuanLiBongDa.DataAccessLayer;
namespace QuanLiBongDa.BusinessLogicLayer
{
    class LapLichThiDauBLO
    {
        TranDauDAO td = TranDauDAO.CreateTranDauDAO();
        DoiBongDAO db = DoiBongDAO.CreateDoiBongDAO();
        SanDAO s = SanDAO.CreateSanDAO();
        VongDAO v = VongDAO.CreateVongDAO();
        public DataTable LoadTranDau(string str)
        {
            return SQLService.Table_Reader(str);//str="LoadLichDau"
        }
        public bool Insert_TranDau(TranDauDTO t)
        {
            return td.Insert_TranDau(t);
        }
        public bool Delete_TranDau(TranDauDTO t)
        {
            return td.Delete_TranDau(t);
        }
        public bool Update_TranDau(TranDauDTO t)
        {
            return td.Update_TranDau(t);
        }
        public void MaDoi(ComboBox madoi)
        {
            td.MaDoi(madoi);
        }
        public void MaSan(ComboBox masan)
        {
            td.MaSan(masan);
        }
        public void MaVong(ComboBox mavong)
        {
            td.MaVong(mavong);
        }
        public DataTable TimMD_Ten(string tendoi)
        {
            return db.TimMD_Ten(tendoi);
        }
        public DataTable TimMS_Ten(string tensan)
        {
            return s.TimMS_Ten(tensan);
        }
        public DataTable TimMV_Ten(string tenvong)
        {
            return v.TimMV_Ten(tenvong);
        }

    }
}
